var currentTabGlobal;

function currentContent(obj){
	firstFujianzil = true;
	busiId = $(obj).attr('id');
	queryCreditApplyId = $(obj).attr('queryCreditApplyId');
	getYwBusinessDetail(function(){
		if(currentTabGlobal == 1) {
			splz(1);
		} else if (currentTabGlobal == 2) {
			zhxx(2);
		} else if (currentTabGlobal == 3) { //贷前资料-征信情况
			dqzl(3);
			gcrxxOnly();
		} else if (currentTabGlobal == 4) { //贷前资料-车辆车贷
			chelxx(4);
			gcrxxOnly();
		} else if (currentTabGlobal == 5) {
			clickLeftTab2(5);
		} else if (currentTabGlobal == 6) {
			zhxx(6)
		} else if (currentTabGlobal == 7) {
			cheliangxx(7);
		} else if (currentTabGlobal == 8) {
			gpsxx(8);
		} else if (currentTabGlobal == 9) {
			diyaxx(9);
		} else if (currentTabGlobal == 10) {
			baobiaoxx(10);
		} else if (currentTabGlobal == 11) {
			zhxx(11);
		} else if (currentTabGlobal == 12) {
			caiwudakuan(12);
		} else if (currentTabGlobal == 13) {
			shuzhixx(13);
		} else if (currentTabGlobal == 14) {
			yewulicxx(14);
		} else if (currentTabGlobal == 15) {
			xianggaunbaox(15);
		} else if (currentTabGlobal == 16) {
			chuxianqk(16);
		} else if (currentTabGlobal == 17) {
			yuqiqk(17);
		} else if (currentTabGlobal == 18) {
			fujian(18);
		} else if (currentTabGlobal == 19) {
			clickLeftTab7(19);
			$('#zhujierenLiHistory').click();
		} else if(currentTabGlobal == 20) {
			clickLeftTab8(20);
		} else if(currentTabGlobal == 21) {
			jkkk(21);
		} else if(currentTabGlobal == 22) {
			shouGongZhengXin(22);
		} else if(currentTabGlobal == 23) {
			jieKouZhengXin(23);
		}else if(currentTabGlobal == 24) {
			fujian(24);
		}
	});
}

$(document).ready(function () {
	var customerName = $.getUrlData('customerName');
	if(customerName && customerName != '') {
		$('#customerName').text(customerName);
	}
	var customerNo = $.getUrlData('customerNo');
	if(customerNo && customerNo != '') {
		$('#customerNo').text(customerNo);
	}
	
	
    //内置选项卡
    var $liall = $('#taball>li');
	var $ulall = $('#contentall>.ul-style');
    $liall.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$liall.removeClass();
		$this.addClass('current');

		/*$ulall.css('display','none');
		$ulall.eq($t).css('display','block');*/
	});
    
    var $li = $('#tab>li');
	var $ul = $('#content .ul-style');
    $li.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$li.removeClass();
		$this.addClass('current');
		$ul.css('display','none');
		$ul.eq($t).css('display','block');
	});
    
    var $lib = $('#tabb>li');
	var $ulb = $('#contentb .ul-style');
    $lib.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$lib.removeClass();
		$this.addClass('currentb');
		$ulb.css('display','none');
		$ulb.eq($t).css('display','block');
	});
    
    var $lisp = $('#tabsp>li');
	var $ulsp = $('#contentsp .ul-style');
    $lisp.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$lisp.removeClass();
		$this.addClass('current');
		$ulsp.css('display','none');
		$ulsp.eq($t).css('display','block');
	});
    
    var $lizx = $('#tabzx>li');
	var $ulzx = $('#contentzx .ul-style');
    $lizx.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$lizx.removeClass();
		$this.addClass('current');
		$ulzx.css('display','none');
		$ulzx.eq($t).css('display','block');
	});
    
    var $linine = $('#tabnine>li');
	var $ulnine = $('#contentnine .ul-style');
    $linine.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$linine.removeClass();
		$this.addClass('current');
		$ulnine.css('display','none');
		$ulnine.eq($t).css('display','block');
	});
    
    var $licw = $('#tabcw>li');
	var $ulcw = $('#contentcw .ul-style');
    $licw.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$licw.removeClass();
		$this.addClass('current');
		$ulcw.css('display','none');
		$ulcw.eq($t).css('display','block');
	});
    
    var $lidh = $('#tabdh>li');
	var $uldh = $('#contentdh .ul-style');
    $lidh.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$lidh.removeClass();
		$this.addClass('current');
		$uldh.css('display','none');
		$uldh.eq($t).css('display','block');
	});
    
    var $licx = $('#tabcx>li');
	var $ulcx = $('#contentcx .ul-style');
    $licx.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$licx.removeClass();
		$this.addClass('current');
		$ulcx.css('display','none');
		$ulcx.eq($t).css('display','block');
	});
    
    var $lihistory = $('#tabhistory>li');
	var $ulhistory = $('#contenthistory .ul-style');
	$lihistory.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$lihistory.removeClass();
		$this.addClass('current');
		$ulhistory.css('display','none');
		$ulhistory.eq($t).css('display','block');
	});
	
	 var $lixhh = $('#tabxhh>li');
	 var $ulxhh = $('#contentxhh .ul-style');
		$lixhh.click(function(){
			var $this = $(this);
			var $t = $this.index();
			$lixhh.removeClass();
			$this.addClass('current');
			$ulxhh.css('display','none');
			$ulxhh.eq($t).css('display','block');
		});
		
	var $lisfzm = $('#tabsfzm>li');
	var $ulsfzm = $('#contentsfzm .ul-style');
		$lisfzm.click(function(){
			var $this = $(this);
			var $t = $this.index();
			$lisfzm.removeClass();
			$this.addClass('currentb');
			$ulsfzm.css('display','none');
			$ulsfzm.eq($t).css('display','block');
	});	
});

